package com.examples;

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.g3d.core.G3DEngine;
import com.g3d.core.G3DState;
import com.g3d.interfaces.IG3DEngineListener;
import com.g3d.interfaces.IG3DTouchScreen;
import com.g3d.types.G3DColor;

public class main extends G3DEngine implements IG3DEngineListener, IG3DTouchScreen 
{

	@Override
	protected void onCreate(Bundle savedInstanceState) 
	{
    	setRequestedOrientation(1);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN );
		super.onCreate(savedInstanceState);
		setEngineListener(this);
		setToucheScreenListener(this);
	}
	
	@Override
	public void onPress(float x, float y) 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onMove(float x, float y) 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onRelease(float x, float y) 
	{
		// TODO Auto-generated method stub
		G3DState.g3dSetClearColor(new G3DColor(1,0,0,1));
	}

	@Override
	public void onInitialize() 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onDraw() 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onScreenResize(int width, int height) 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onOrientationChanged(int orientation) 
	{
		// TODO Auto-generated method stub
	}

}
